﻿mainModule.factory("dictionaryItemSvc", ["$http", "BaseApiSvc", "settings", function ($http, BaseApiSvc, settings) {
    "use strict";
    var url = settings.cmsBaseUrl + "api/admin/dictionaries/{id}/items/";
    var ChildSvc = function () {
        BaseApiSvc.call(this, url);
    };
    ChildSvc.prototype = Object.create(BaseApiSvc.prototype);

    ChildSvc.prototype.setParent = function (id) {
        this.url = url.replace("{id}", id);
    }    

    return new ChildSvc();
}]);